<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
</head>
<body>
<table border=1>
    <tr>
        <td>id</td>
        <td>编号</td>
        <td>姓名</td>
        <td>性别</td>

    </tr>

    <c:forEach   items="${student }" var="s" >
        <tr>
                <%--  <td>${s} </td> --%>
            <td>${s.id}</td>
            <td>${s.name}</td>
            <td>${s.sex}</td>
            <td>${s.classId}</td>

        </tr>
    </c:forEach>

</table>

<a href="index.jsp">返回</a>
</body>
</html>
